'use strict';

const Service = require('egg').Service;

class UserService extends Service {
  async create(payload) {
    // 与数据库打交道
    const {ctx} = this;
    return ctx.model.User.create(payload);
  }
}

module.exports = UserService;
